﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using BCNPCObject;
using BCNPCObject.DB;

namespace bus_TienichNPC
{
    public class NPC_CHAMNO_OFFLINE_bus
    {
        BCNPCObject.NPC_CHAMNO_OFFLINE_Control ctr;

        public NPC_CHAMNO_OFFLINE_bus()
        {
            ctr = new NPC_CHAMNO_OFFLINE_Control();
        }

        public DataSet ChamnoOff_Nutcha(string ma_tngan, string ma_dvql)
        {
            return ctr.ChamnoOff_Nutcha(ma_tngan, ma_dvql);
        }

        public DataSet ChamnoOff_Nutcha2(int bb_giao, string ma_tngan, string ma_dvql)
        {
            return ctr.ChamnoOff_Nutcha2(bb_giao, ma_tngan, ma_dvql);
        }

        public DataSet ChamnoOff_Nutcon(string so_gcs, int bb_giao, string ma_tngan, string ma_dvql)
        {
            return ctr.ChamnoOff_Nutcon(so_gcs, bb_giao, ma_tngan, ma_dvql);
        }

        public DataSet ChamnoOff_All(string ma_dvql)
        {
            return ctr.ChamnoOff_All(ma_dvql);
        }

        public DataSet DS_BBG(string ma_tngan, string ma_dvqly)
        {
            return ctr.DS_BBG(ma_tngan, ma_dvqly);
        }

        public DataSet DS_SoGCS(int ma_bbg, string ma_tngan, string ma_dvqly)
        {
            return ctr.DS_SoGCS(ma_bbg, ma_tngan, ma_dvqly);
        }

        public DataSet select_ThuNganVien(string ma_dviqly)
        {
            return ctr.select_ThuNganVien(ma_dviqly);
        }

        public string Ten_Tngan(string ma_tngan, string ma_dviqly)
        {
            return ctr.Ten_Tngan(ma_tngan, ma_dviqly);
        }

        public DataSet LOAD_DSTon(string ma_tngan, string ma_dviqly)
        {
            return ctr.LOAD_DSTon(ma_tngan, ma_dviqly);
        }

        public DataSet DSTon_NutGoc(string ma_dvqly)
        {
            return ctr.DS_TON_ALL(ma_dvqly);
        }

        public DataSet DSTon_Nutcha(string ma_tngan, string ma_dvqly)
        {
            return ctr.DSTon_Nutcha(ma_tngan, ma_dvqly);
        }

        public DataSet DSTon_Nutcha2(string ma_tngan, Int64 so_BBGIAO, string ma_dvqly)
        {
            return ctr.DSTon_Nutcha2(ma_tngan, so_BBGIAO, ma_dvqly);
        }

        public DataSet DSTon_Nutcon(string ma_tngan, Int64 so_BBGIAO, string Ma_SoGCS, string ma_dvqly)
        {
            return ctr.DSTon_Nutcon(ma_tngan, so_BBGIAO, Ma_SoGCS, ma_dvqly);
        }

        public DataSet DS_TNGAN_DACHAM(string ma_dvql)
        {
            return ctr.DS_TNGAN_DACHAM(ma_dvql);
        }

        public DataSet LOAD_DACHAM_All(string ma_tngan, string ma_dvql)
        {
            return ctr.LOAD_DACHAM_All(ma_tngan, ma_dvql);
        }

        public DataSet DS_DACHAM_All(string ma_dvql)
        {
            return ctr.DS_DACHAM_All(ma_dvql);
        }

        public DataSet DS_DACHAM_NUTCHA(string ma_tngan, string ma_dvql)
        {
            return ctr.DS_DACHAM_NUTCHA(ma_tngan, ma_dvql);
        }

        public DataSet DS_DACHAM_NUTCHA2(int bb_giao, string ma_tngan, string ma_dvql)
        {
            return ctr.DS_DACHAM_NUTCHA2(bb_giao, ma_tngan, ma_dvql);
        }

        public DataSet DS_DACHAM_NUTCON(string so_gcs, int bb_giao, string ma_tngan, string ma_dvql)
        {
            return ctr.DS_DACHAM_NUTCON(so_gcs, bb_giao, ma_tngan, ma_dvql);
        }

        public DataSet LOAD_ATM(string ma_tngan, string ma_dviqly)
        {
            return ctr.LOAD_ATM(ma_tngan, ma_dviqly);
        }

        public DataSet DS_ATM_All(string ma_dvql)
        {
            return ctr.DS_ATM_All(ma_dvql);
        }

        public DataSet DS_ATM_NUTCHA(string ma_tngan, string ma_dvql)
        {
            return ctr.DS_ATM_NUTCHA(ma_tngan, ma_dvql);
        }

        public DataSet DS_ATM_NUTCHA2(int bb_giao, string ma_tngan, string ma_dvql)
        {
            return ctr.DS_ATM_NUTCHA2(bb_giao, ma_tngan, ma_dvql);
        }

        public DataSet DS_ATM_NUTCON(string so_gcs, int bb_giao, string ma_tngan, string ma_dvql)
        {
            return ctr.DS_ATM_NUTCON(so_gcs, bb_giao, ma_tngan, ma_dvql);
        }

        public DataSet DS_TN_ATM(string ma_dvqly)
        {
            return ctr.DS_TN_ATM(ma_dvqly);
        }

        public DataSet TNV_CHITIET_HDON(string ma_dviqly)
        {
            return ctr.TNV_CHITIET_HDON(ma_dviqly);
        }

        public DateTime Datetime()
        {
            return ctr.date;
        }

        public DataSet HDON_CHAMNONHANH(string ma_dviqly, string ma_tngan, Int64 id_hdon)
        {
            DataSet data = new DataSet();
            CMIS2.DB.SELECT_CHAMNONHANH(ma_dviqly, ma_tngan, id_hdon, out data);
            return data;
        }
    }
}
